package com.gitee.form_token.mapper;

import com.gitee.form_token.entity.SysAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAccountMapper extends BaseMapper<SysAccount> {

    SysAccount selectByUsername(@Param("username") String username);

    List<String> selectAuthoritiesByroleId(@Param("roleId") Long roleId);

    int insertUser(@Param("user") SysAccount user);

    int upgradePassword(@Param("username") String username, @Param("password") String password);

}
